<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<%@include file="common.jsp"%>
<head>
<style>
.divcss5-right {
	float: right
}
</style>

<script type="text/javascript">
	var status = "${order.status}";
	$(function() {
		var order_status = document.getElementById("order_status");
		for (var i = 0; i < order_status.options.length; i++) {
			if (status == 1) {
				order_status.options[i].selected = true;
				break;
			}else if(status ==2){
				order_status.options[i+1].selected = true;
				break;
			}else if(status ==3){
				order_status.options[i+2].selected = true;
				break;
			}else if(status ==4){
				order_status.options[i+3].selected = true;
				break;
			}
		}
	});
</script>


</head>
<!-- 内容区域 -->

<form method="post"
	action="${pageContext.request.contextPath}/backOrder/updateOrder.shtml">
	<div class="tpl-content-wrapper">
		<div class="row-content am-cf">
			<div class="row">
				<div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
					<div class="widget am-cf">
						<div class="widget-head am-cf">
							<div class="widget-title  am-cf">修改订单</div>

						</div>
						<div class="widget-body  am-fr">

							<div class="am-u-sm-12">


								<div  style="width: 400px; padding-left: 25%;">
									<div >
										<label>订单状态</label> <select name="status" id="order_status"
										data-am-selected="{btnSize: 'sm'}">
											<option value="1">待付款</option>
											<option value="2">待发货</option>
											<option value="3">待收货</option>
											<option value="4">待评价</option>
										</select>
									</div>
									<p>
										<label>总金额</label> <input type="text" name="totalAmount"
											value="${order.totalAmount}">
									</p>
									<p>
										<label>收货地址</label> <input type="text" name="deliveryAddress"
											value="${order.deliveryAddress }">
									</p>
									<p>
										<label>收货人</label> <input type="text" name="consignee"
											value="${order.consignee }">
									</p>
									<p>
										<label>收货电话</label> <input type="text" name="consigneePhone"
											value="${order.consigneePhone }">
									</p>
								</div>
								<button type="submit"
									class="am-btn am-btn-default am-btn-warning">确认修改</button>
								<a href="#" onClick="javascript :history.back(-1);"><button type="button"
									class="am-btn am-btn-default am-btn-warning">取消</button></a>

							</div>

						</div>

					</div>
				</div>
			</div>
		</div>
	</div>
</form>
<div class="divcss5-right"></div>


<script
	src="${pageContext.request.contextPath}/assets/js/amazeui.min.js"></script>
<script src="${pageContext.request.contextPath}/assets/js/app.js"></script>
</body>
</html>